package org.geektimes.configuration.microprofile.source;

import java.util.Map;

/**
 * @Author: jipeng
 * @Description:   动态配置源
 * @Date: Created in 2021/3/21 19:15
 */
public class DynamicConfigSource  extends MapBesedConfigSource {

    private Map configData;

    public DynamicConfigSource(){
        super("DynamicConfigSource",500);
    }

    @Override
    protected void prepareConfigData(Map configData) throws Throwable {
        this.configData = configData;
    }

    public void onUpdate(String data){
        //异步更新
    }
}
